﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="QuanLyTaiKhoan.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.QuanLyTaiKhoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Quản Lý Tài Khoản</title>
    <style type="text/css">
        #qltk
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
        .style1
        {
            width: 120px;
            padding-left: 10px;
            height: 30px;
        }
        .style2
        {
            width: auto;
            height: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="padding-left: 40px">
        Quản Lý Tài Khoản</h1>
    <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="DoiMatKhau" runat="server"
        ForeColor="Red" ShowSummary="true" />
    <table style="float: left; margin-left: 20px; width: 45%">
        <tr>
            <td>
                <asp:Panel ID="Panel2" runat="server" GroupingText="Chức Năng">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Chức Năng:
                            </td>
                            <td class="style2">
                                <asp:DropDownList runat="server" Width="205px" ID="ddlchucnang" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlchucnang_SelectedIndexChanged">
                                    <asp:ListItem>Thay Đổi Mật Khẩu</asp:ListItem>
                                    <asp:ListItem>Xem Thông Tin Cá Nhân</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <table style="float: left; margin-left: 20px; width: 50%">
        <tr>
            <td id="chucnang0" runat="server">
                <asp:Panel ID="Panel1" runat="server" GroupingText="Thay Đổi Mật Khẩu">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Mật Khẩu Cũ:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtMatKhau" runat="server" Width="200px" TextMode="Password" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Nhập mật khẩu"
                                    ControlToValidate="txtMatKhau" ValidationGroup="DoiMatKhau" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Mật Khẩu Mới:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtMatKhauMoi" runat="server" Width="200px" TextMode="Password" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập mật khẩu mới"
                                    ControlToValidate="txtMatKhauMoi" ValidationGroup="DoiMatKhau" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="Mật khẩu mới trùng mật khẩu cũ"
                                    ControlToCompare="txtMatKhau" ControlToValidate="txtMatKhauMoi" ForeColor="Red"
                                    ValidationGroup="DoiMatKhau" Text="*" Operator="NotEqual"></asp:CompareValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtMatKhauMoi"
                                    ErrorMessage="Mật khẩu nằm trong khoảng 6-32 kí tự" ForeColor="Red" ValidationGroup="DoiMatKhau"
                                    Text="*" ValidationExpression="[\s\S]{6,32}"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Xác Nhận Mật Khẩu:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtXacNhanMatKhauMoi" runat="server" Width="200px" TextMode="Password" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Nhập mật khẩu xác thực"
                                    ControlToValidate="txtXacNhanMatKhauMoi" ValidationGroup="DoiMatKhau" Text="*"
                                    ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Mật khẩu xác thực không chính xác"
                                    ControlToCompare="txtMatKhauMoi" ControlToValidate="txtXacNhanMatKhauMoi" ForeColor="Red"
                                    ValidationGroup="DoiMatKhau" Text="*"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                                <asp:Button ID="btnCapNhatLopHoc" Text="Cập Nhật" runat="server" Width="100px" ValidationGroup="DoiMatKhau"
                                    CssClass="btnCapNhat" OnClick="btnCapNhatLopHoc_Click" /><asp:Button ID="btnQuayLai"
                                        Text="Hủy" runat="server" Width="100px" CssClass="btnHuy" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr id="chucnang1" runat="server" visible="false">
            <td>
                <asp:Panel ID="Panel3" runat="server" GroupingText="Xem Thông Tin Cá Nhân">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Mã Nhân Viên:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblMaNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Họ và Tên:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblHoTenNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Ngày Sinh:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblNgaySinh" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Địa Chỉ:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblDiaChiNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Giới Tính:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblGioiTinh" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Người Quản Lý:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblQuanLy" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Điện Thoại:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblDienThoaiNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                CMND:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblCMNDNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Email:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblEmailNV" runat="server" Width="200px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
